n=eval(input())
for i in range (0,n):
    for j in range (0,n):
        z=chr(65+(i+j)%26)
        print(z,end='')
    print()